package com.yrot.admin.mapper;

import com.yrot.admin.entity.SysResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yrot.admin.form.ResultAccuracyJson;
import com.yrot.admin.form.ResultJson;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hemin
 * @since 2019-04-02
 */
@Repository
public interface SysResultMapper extends BaseMapper<SysResult> {

    List<ResultJson> findResultsByTrainId(Map<String,Object> map);

    ResultAccuracyJson findAccuracy(Map<String,Integer> map);

    ResultAccuracyJson findAccuracyByTrainId(Integer trainId);
}
